package com.liuyuxi.day5_20_night.service;

import java.util.List;

import javax.validation.Valid;

import com.github.pagehelper.PageInfo;
import com.liuyuxi.day5_20_night.bean.Dishes;
import com.liuyuxi.day5_20_night.bean.Room;
import com.liuyuxi.day5_20_night.bean.Running;
import com.liuyuxi.day5_20_night.bean.Tem;

public interface MyService {

	//列表
	PageInfo<Running> list(Integer pageNum, Integer pageSize, Tem tem);

	
	//保健列表
	List<Room> listRoom();


	//删除
	boolean del(String id);


	//菜单列表
	List<Dishes> listDis();


	//添加
	void add(@Valid Running running);


	//验证包间是否正在使用
	boolean rooming(Integer id);

	//查找订单对象
	Running getRun(Integer id);

	//根据id查找菜品
	Integer[] getDis(Integer id);




	//修改
	void upd(@Valid Running running);


	//结账
	void settle(Integer id, Integer roomId);

}
